<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template name="rss">
		<xsl:param name="userLogin" />
		<xsl:param name="albumId" />
		
		<xsl:choose>
			<xsl:when test="$method = '__default'">
				<link title="" type="application/rss+xml" rel="alternate" href="{$baseURI}/photos.rss" />
			</xsl:when>
			<xsl:when test="$method = 'album'">
				<link title="" type="application/rss+xml" rel="alternate" href="{$baseURI}/photoalbum/{$albumId}.rss" />
			</xsl:when>
			<xsl:when test="$method = 'user'">
				<link title="" type="application/rss+xml" rel="alternate" href="{$baseURI}/photos/user/{$userLogin}.rss" />
			</xsl:when>
		</xsl:choose>
	</xsl:template>

</xsl:stylesheet>